import React from 'react';
import styled from 'styled-components';
const Pageheader = (props) => {
  return (
    
    <Pagehand>
      <h2>{props.title}</h2>
      {props.children}
    </Pagehand>
    
  );
}
const Pagehand = styled.div`
  width: 100%;
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border:1px solid rgb(235, 237, 240);
  padding: 0 20px ;
`

export default Pageheader;
